//
//  PendApprovalInfoBasicTableViewCell.m
//  ZJControlsClass
//
//  Created by apple on 2024/11/1.
//

#import "PendApprovalInfoBasicTableViewCell.h"

@interface PendApprovalInfoBasicTableViewCell ()


@property (nonatomic,strong) UIView * v;



@end


@implementation PendApprovalInfoBasicTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
    
        
        [self configUI];
        
        
    }
    return self;
}


-(void)configUI{
    [self.contentView addSubview:self.titleLabel];
    [self.contentView addSubview:self.msgLabel];
    [self.contentView addSubview:self.v];
    
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).with.offset(ALIGN_WIDTH_PT(12));
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.height.equalTo(@(ALIGN_HEIGHT_PT(49)));
        make.width.equalTo(@(SCREEN_WIDTH / 2));
    }];
    
    [self.msgLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView).with.offset(-ALIGN_WIDTH_PT(12));
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.height.equalTo(@(ALIGN_HEIGHT_PT(49)));
        make.width.equalTo(@(SCREEN_WIDTH / 2));
    }];
    
    [self.v mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.titleLabel.mas_left);
        make.right.equalTo(self.msgLabel.mas_right);
        make.top.equalTo(self.titleLabel.mas_bottom);
        make.height.equalTo(@(1));
    }];
    
}



#pragma mark -- 懒加载
-(UILabel *)titleLabel{
    if (!_titleLabel) {
        _titleLabel = [UILabel new];
        _titleLabel.text = @"姓名";
        _titleLabel.textColor = COLOR_RGB(153, 153, 153);
        _titleLabel.textAlignment = NSTextAlignmentLeft;
        _titleLabel.font = FONT14;
    }
    return _titleLabel;
}

-(UILabel *)msgLabel{
    if (!_msgLabel) {
        _msgLabel = [UILabel new];
        _msgLabel.text = @"张三";
        _msgLabel.textColor = [UIColor blackColor];
        _msgLabel.textAlignment = NSTextAlignmentRight;
        _msgLabel.font = FONT14;
    }
    return _msgLabel;
}
-(UIView *)v{
    if (!_v) {
        _v = [UIView new];
        _v.backgroundColor = COLOR_RGB(237, 237, 237);
    }
    return _v;
}


@end
